#ifndef RTC_CALENDAR_H_
#define RTC_CALENDAR_H_

#include "stm32f4xx_hal.h"
#include "stdint.h"
#include "globals.h"

/* DateTime */
typedef struct sDateTime
{
	uint8_t year;
	uint8_t month;
	uint8_t day;
	uint8_t hour;
	uint8_t min;
	uint8_t sec;
}sDateTime;

extern RTC_HandleTypeDef RtcHandle;
extern uint32_t dateTimeNext;

void RTC_CalendarInit(void);
void RTC_AlarmConfig(void);
void RTC_Set_Next_Time(void);

#endif
